package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc FatherCycleDto
 * @使用场景
 */
@Data
public class FatherCycleDto extends BaseDto implements Serializable {

    /**
     * 周期ID
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 周期开始时间
     */
    @ApiModelProperty("周期开始时间")
    private Date cycleStartTime;

    /**
     * 周期结束时间
     */
    @ApiModelProperty("周期结束时间")
    private Date cycleEndTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        FatherCycleDto that = (FatherCycleDto) o;
        return cycleId == that.cycleId && cycleStandardName == that.cycleStandardName && cycleStartTime == that.cycleStartTime && cycleEndTime == that.cycleEndTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleId, cycleStandardName, cycleStartTime, cycleEndTime);
    }


}
   